package stu.aistar.service;

import com.github.pagehelper.PageInfo;
import stu.aistar.model.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService {

    User findUserByPhone(String phone);
    User login(String phone,String password);

    User registUser(String phone,String password);

    String sendVerifyCode(String phoneNumber, Integer code_length, Map<String, String> map);

    List<User> findAll();

    PageInfo<User> findUsersByPage(String page, String pageSize, String username, String phone, String name);

    int delUserById(Integer id);

    int updateUser(User user);

    int insertUserByImport(User user);
}
